package top.yehot.cmmu.mybatis.base;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 通用类(包含：创建者，创建时间，更新者，更新时间)
 * 
 * @author lquan
 * @date 2022-9-10 11:41:41
 */
@Getter
@Setter
@ApiModel("通用类-BaseEntity")
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty("创建者")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty("更新者")
	@TableField(fill = FieldFill.UPDATE)
	private String modifyBy;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime modifyTime;

}
